import { CmdPreChecker } from '@amcax/base';
import { Dispatch, SetStateAction } from 'react';

export async function loadCmdPreCheckers(
  setCmdPreCheckers: Dispatch<SetStateAction<CmdPreChecker[]>>,
) {
  const { sketchPreChecker } = await import('./sketch-pre-checker');
  // TODO: add more pre-checkers here

  setCmdPreCheckers([sketchPreChecker]);
}
